import { defineNuxtPlugin } from '#app'
import ElementPlus from 'element-plus'
import * as ElIcons from '@element-plus/icons-vue'

export default defineNuxtPlugin(nuxtApp => {
  nuxtApp.vueApp.use(ElementPlus)
  Object.entries(ElIcons).forEach(([name, component]) => {
    nuxtApp.vueApp.component(name, component)
  })
})